<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <link rel="stylesheet" href="/css/default.css?v=8" type="text/css" />
        <title><?php echo $this->p_title ?></title>
        <meta name="description" content="<?php echo $this->p_desc ?>" />
        <meta name="keywords" content="<?php echo $this->p_key ?>" />

        <link rel="stylesheet" type="text/css" href="/css/main.css" />
        <link rel="shortcut icon" type="image/x-icon" href="/img/favi.ico" />
        <script src="/js/jquery-1.7.1.min.js" type="text/javascript"></script>

        <link rel="stylesheet" type="text/css" href="/css/jquery-ui.css" />
        <script type="text/javascript" src="/js/jquery-ui-1.8.16.custom.min.js"></script>

        <script src="/js/main.js" type="text/javascript"></script>
        <!--[if gte IE 5]>
        <style>
	#menu li{padding:1px;margin:0 2px;}
	#menu li a{margin-right:-3px;}
	#banner{margin:0;}
	#content{width:680px}
	#sidebar{padding-left:10px;}
	#container{position:relative;top:-15px;}
	.sidelinks{margin-left:0;}
	#footer{position:relative;bottom:-20px;}
        </style>
        <![endif]-->
    </head>
    <body>
        <br />
        <div id="container">
            <?php if (is_array($this->labels) && count($this->labels)) {
            ?>
                <div style="position: relative" id="banner">    
                    <div id="site-link" style="position: absolute; top: 99px; left: 28px; font-size: 12px"><?php echo $_SERVER['SERVER_NAME']?></div>
                    <h4 style="word-wrap: normal; overflow: hidden"><a href="/" style="color: #555; border-bottom: none; font-size: 72px">Developer blog</a>&nbsp; / &nbsp;<span class="lighter_banner">
                        <?php $delphi = array_shift($this->labels);
                        echo '<a href="/' . $delphi['url'] . '">' . $delphi['title'] . '</a>' ?>
                            | <a href="/web-programmirovanie">web-development:</a>
                        <?php
                        foreach ($this->labels as $labels) {
                            echo '&nbsp;<a href="/' . $labels['url'] . '">' . $labels['title'] . '</a> ';
                        }
                        ?>
                    </span></h4>
            </div>
            <?php } ?>
                    <div id="menu">
                        <ul>
                            <li><a href="/" <?php echo ($this->controllerName == 'index') ? 'class="current"' : '' ?>>Главная</a></li>
                    <?php if (is_array($this->pages) && count($this->pages)) {
                        foreach ($this->pages as $page) {
                          if(!empty ($page['top_menu'])){ ?>
                            <li><a <?php echo ($this->page_url == $page['url']) ? 'class="current"' : '' ?> href="/<?php echo ((isset ($this->categories[$page['category_id']])) ? $this->categories[$page['category_id']]['url'].'/' : ''). $page['url'] ?>"><?php echo $page['title'] ?></a></li>
                    <?php } }
                    } ?>
                </ul>
            </div>